
#ifndef __CTHREADMUTEX_H
#define __CTHREADMUTEX_H

#include <pthread.h>

class CThreadMutex
{
private:
  pthread_mutex_t  m_Mutex;

public:
  CThreadMutex();
  ~CThreadMutex();
  int Lock();
  int Unlock();
  int TryLock();  
  pthread_mutex_t* GetThdMutex();
};

#endif